{extend name="admin/base_pop" /}
{block name="resources"}
<script type="text/javascript" src="__STATIC__/My97DatePicker/WdatePicker.js"></script>
<style>
	.count-table .title{
		font-weight:bold;
		margin-bottom:10px;
	}
	.count-table span{
		display:inline-block;
		width:16%;
	}
	.table-class{border-top: 1px solid #E1E6F0}
</style>
{/block}
{block name="main"}

<table class="table-class">
	<colgroup>
		<col style="width: 2%;">
		<col style="width: 10%;">
		<col style="width: 10%;">
		<col style="width: 10%;">
		<col style="width: 42%;">
		<col style="width: 16%;">
		<col style="width: 10%;">
	</colgroup>
	<thead>
	<tr align="center">
		<th><i class="checkbox-common" input_all ="#productTbody">
			<input type="checkbox" ></i>
		</th>
		<th align="left">操作用户</th>
		<th align="left">操作</th>
		<th align="left">IP</th>
		<th align="left">操作详情</th>
		<th>时间</th>
		<th>操作</th>
	</tr>
	</thead>
	<tbody id="productTbody"></tbody>
</table>
<input type="hidden" id="member_id" value="{$member_id}"/>
{/block}
{block name="script"}
<script type="text/javascript">
	function LoadingInfo(page_index) {
		var search_text = $("#search_text").val();
		var start_date = $("#startDate").val();
		var end_date = $("#endDate").val();
		var member_id = $("#member_id").val();
		$.ajax({
			type : "post",
			url : "{:__URL('ADMIN_MAIN/member/memberOpList')}",
			data : { "page_index" : page_index, "page_size" : $("#showNumber").val(), "search_text" : search_text, "start_date" : start_date, "end_date" : end_date, "member_id":member_id },
			success : function(data) {
				if (data["data"].length > 0) {
					$(".table-class tbody").empty();
					for (var i = 0; i < data["data"].length; i++) {
						var html = '';
						html += '<tr align="center">';
						html += '<td ><i class="checkbox-common"><input name="sub" type="checkbox" value="'+ data['data'][i]['id']+'" ></i></td>';
						html += '<td align="left">' + data["data"][i]["user_name"] + '</td>';
						html += '<td align="left">' + data["data"][i]["controller"] + '/' + data["data"][i]["method"] + '</td>';
						html += '<td align="left">' + data["data"][i]["ip"] + '</td>';
						html += '<td align="left">访问地址：<span style="color:#ff0000;">'+ data["data"][i]["url"] +'</span><br/>操作描述：<span style="color:blue;">'+ data["data"][i]["data"] + '</span></td>';

						html += '<td>' + timeStampTurnTime(data["data"][i]["create_time"]) + '</td>';
						/*if(data['data'][i]['is_admin'] == 1){
                            html += '<td style="color:#B5B3B3;">管理员用户不可进行操作</td>';
                        }else{
                            html += '<td><a href="'+__URL('ADMIN_MAIN/auth/edituser?uid=' + data["data"][i]["uid"])+'">修改</a>&nbsp;&nbsp; ';
                            html += data["data"][i]["user_status"] == 0 ? '<a href="javascript:void(0);" onclick="unlock('+data["data"][i]["uid"]+', 1)">解锁</a>&nbsp;&nbsp; ' : '<a href="javascript:void(0);" onclick="lock('+data["data"][i]["uid"]+', 0)">锁定</a>&nbsp;&nbsp; ';
                            html += '<a href="javascript:void(0);" onclick="resetPassword(' + data["data"][i]["uid"] + ')">重置密码</a>';
                            html += '&nbsp;&nbsp;<a href="javascript:;" onclick="deleteLog(' + data["data"][i]["uid"] + ')">删除</a></td>';
                        }*/
						html += '<td>--</td>';
						html += '</tr>';
						$(".table-class tbody").append(html);
					}
				} else {
					var html = '<tr align="center"><td colspan="8">暂无符合条件的数据记录</td></tr>';
					$(".table-class tbody").html(html);
				}
				initPageData(data["page_count"],data['data'].length,data['total_count']);
				$("#pageNumber").html(pagenumShow(jumpNumber,$("#page_count").val(),{$pageshow}));
			}
		});

	}


</script>
{/block}